package lesson;

public class getMax {
    public static void main(String[] args) {
        System.out.println(getMax(5,8,7));
    }
    public static int getMax(int a, int b, int c){
        int max = a;
        if(b>max){
            max = b;
        }
        if(c>max){
            max = c;
        }
        return max;
    }
}
